new Vue({
  el: '#app',
  data() {
    return {
      html: '',
    }
  },
  mounted() {
    const Company_Profile_SerialNumber = sessionStorage.getItem("Company_Profile_SerialNumber")
    this.getData(Company_Profile_SerialNumber)
  },
  methods: {
    getData(Primary_Key) {
      const _this = this;
      $.ajax({
        url: DomainName + '/getInquiryIDAction?token=' + $.cookie('token'),
        type: 'POST',
        data: {
          Data: 'company_profile',
          Primary_Key,
          Primary_Key_Name: 'Company_Profile_SerialNumber'
        },
        success: function (res) {
          if (res.length > 0) {
            _this.html = res[0].Company_Profile_Main
          }
        },
        error: function () {
          _this.$message.error("操作失败，请稍后再试")
        },
        complete: function (XMLHttpRequest) {
          _this.loading = false
          if (XMLHttpRequest.getResponseHeader("REDIRECT") == "REDIRECT") {
            window.parent.document.location.href = absolutepath() + XMLHttpRequest.getResponseHeader("CONTENTPATH");
          }
        }
      })
    },
  },
})